import request from '@/utils/request'

//门店年度预算达成
export function homeGetBudgetYearSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//月业绩目标达成
export function homeGetMonthKpiSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//季度业绩目标达成
export function homeGetQuarterKpiSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//员工月业绩达成
export function homeGetStaffAchSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//产品销售业绩（金额）
export function homeGetSellProductAch(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//产品销售数量（成交订单分布）
export function homeGetProductCount(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人数据趋势
export function phoneStaGetPartnerDataTrend(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人-月业绩达成-月分润金额
export function phoneStaGetPartnerMonthAche(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人-产品销售业绩
export function phoneStaGetPartnerProductAche(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人-门店年度分润达成
export function phoneStaGetPartnerProfitSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//生涯规划师数据趋势
export function phoneStaGetStaffDataTrend(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人-生涯规划师查询产品销售数量
export function phoneStaGetUserProductCount(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}
//店长查询合伙人产品销售数量
export function phoneStaGetBusinessPartnerProductCount(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//负责人-各门店月度业绩达成
export function phoneStaGetDutyMonthAche(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}


//负责人-各门店分润金额
export function phoneStaGetDutyYearProfit(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//负责人-自然年度业绩达成
export function phoneStaGetDutyYearAche(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//负责人-成交订单分布
export function phoneStaGetDutyProductCount(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//负责人-产品销售利润
export function phoneStaGetDutyProductProfit(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//店长上方统计
export function phoneStaGetStoreManSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//小程序首页统计查询
export function profitHomeProfitSta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//合伙人-生涯规划师累计分润金额-业绩（上方小字）
export function phoneStaGetProfitSum(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//年度收入预算-获取已添加的预算年份
export function cemBusinessBudgetGetYears(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}

//负责人上方统计
export function phoneStaGetStoreDutySta(url,data) {
    return request({
        url: url,
        method: 'GET',
        params:data
    })
}
// export function addProductList(data){
//     return request({
//         url: 'cemBusinessOrder/businessInsertProduct',
//         method: 'POST',
//         data
//     })
// }